<template>
  <div class="temp-aside" style="right: 10px; top:92%;z-index: 100">
    <ul class="temp-aside-tasty">
      <li class="aside-item new_Hash aside-top" data-top="used-top" style="display: none" @click="goTopClick">
        <span class="aside-text">返回顶部</span></li>
    </ul>
  </div>
</template>
<script setup>
defineProps({
  weixinimg: {type: String, default: ""}
})
const goTopClick = () => {
  document.documentElement.scrollIntoView({behavior: "smooth"});
}

const handleLink = (link) => {
  navigateTo(link)
}

onMounted(() => {
  if (process.client) {
    var dom = document.querySelector(".aside-top");
    if (dom) dom.style.display = "none"
    window.addEventListener("scroll", function (e) {
      var stop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
      if (stop >= 200) {
        if (dom) dom.style.display = "block"
      } else {
        if (dom) dom.style.display = "none"
      }
    })
  }
})
</script>
<style>
.client-aside-item .imgbox {
  position: absolute;
  right: 120%;
  top: 0px;
  display: none;
  width: 240px;
}

.client-aside-item:hover .imgbox {
  display: block
}
</style>